package freaks.terah.model;

public class Data {
	String type;
	String data;
	int size;
	
	public Data(String data)
	{
		this.data = data;
		type = "String";
		this.size = data.length();
	}
	
	public Data(int data)
	{
		this.data = String.valueOf(data);
		type = "Integer";
		int copy = data;
		size = 0;
		while (copy != 0)
		{
			copy >>= 1;
			size++;
		}
	}
	
	public String getType()
	{
		return type;
	}
	
	public String getData()
	{
		return data;
	}
	
	public int getSize()
	{
		return size;
	}
}
